package com.robin2;

import java.util.Hashtable;
 
public class FontInnerFactory {  
    private Hashtable<String, FontInner> charHashTable = new Hashtable<String, FontInner>();  
  
    public FontInnerFactory() {  
    }  
  
    public FontInner GetFlyWeight(String fontString, String status) {  
        if (charHashTable.get(fontString) != null) {  
            return charHashTable.get(fontString);  
        } else {  
            FontInner tmp = new FontInner(fontString, status);  
            charHashTable.put(fontString, tmp);  
            return tmp;  
        }  
    }  
  
    public Hashtable<String, FontInner> GetFactory() {  
        return charHashTable;  
    }  
}  